<?php
/**
 * Created by JetBrains PhpStorm.
 * User: shaoshuai
 * Date: 12-7-15
 * Time: 下午1:46
 * To change this template use File | Settings | File Templates.
 */
include 'boot.php';
session_start();
$requestWho = $_GET['user'];
$event = new Event(array(
    'type' => Event::FIGHT_REQUEST,
    'from' => $_SESSION['username'],
));

$user = new User(array('name' => $requestWho));
EventDispatcher::dispatch($user, $event);
